import { findFilmsPage } from '@/api/MaiZuo';
const clearFilmList = () => {
  return { type: 'clear-filmList' };
};

// redux-promise
const getFilmList = async (cityId = 110100) => {
  const res = await findFilmsPage(1, 10, 1, cityId);
  return {
    type: 'change-filmList',
    payload: res.films || [],
  };
};

export { clearFilmList, getFilmList };
